<?php
/**************************
@Author  : sulwan
@Content : 检测是否登陆
**************************/
include_once(dirname(__file__).'/./init.php');
/*判断是否登陆*/
$userInfo = userInfo();
if(empty($userInfo)) {
	$action = 'showIndex';
}else{
	$action = 'login';
}
switch($action) {
case login:
	login();
	break;
default;
	showIndex();
}
?>